home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / unix / ch21 / 21fig04a.wrl < prev    next >
Text File  |  1996-09-23  |  1KB  |  54 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.         PointLight {
  8.             location 3.0 3.0 3.0
  9.             ambientIntensity 0.2
  10.         },
  11.         Shape {
  12.             appearance Appearance {
  13.                 material Material {
  14.                     diffuseColor 0.40 0.40 0.40
  15.                 }
  16.             }
  17.             geometry Extrusion {
  18.                 creaseAngle 1.57
  19.                 endCap FALSE
  20.                 solid  FALSE
  21.                 crossSection [
  22.                 # Circle
  23.                      1.00  0.00,   0.92 -0.38,
  24.                      0.71 -0.71,   0.38 -0.92,
  25.                      0.00 -1.00,  -0.38 -0.92,
  26.                     -0.71 -0.71,  -0.92 -0.38,
  27.                     -1.00 -0.00,  -0.92  0.38,
  28.                     -0.71  0.71,  -0.38  0.92,
  29.                      0.00  1.00,   0.38  0.92,
  30.                      0.71  0.71,   0.92  0.38,
  31.                      1.00  0.00
  32.                 ]
  33.                 spine [
  34.                 # Straight-line
  35.                     0.0 0.0 0.0,  0.0 0.4 0.0,
  36.                     0.0 0.8 0.0,  0.0 1.2 0.0,
  37.                     0.0 1.6 0.0,  0.0 2.0 0.0,
  38.                     0.0 2.4 0.0,  0.0 2.8 0.0,
  39.                     0.0 3.2 0.0,  0.0 3.6 0.0,
  40.                     0.0 4.0 0.0
  41.                 ]
  42.                 scale [
  43.                     1.8  1.8,  1.95 1.95,
  44.                     2.0  2.0,  1.95 1.95
  45.                     1.8  1.8,  1.5  1.5
  46.                     1.2  1.2,  1.05 1.05,
  47.                     1.0  1.0,  1.05  1.05,
  48.                     1.15 1.15,
  49.                 ]
  50.             }
  51.         }
  52.     ]
  53. }
  54.